package edu.gatech.cs2340.bytebankers.tests.UI;

import java.awt.Dimension;

import javax.swing.JFrame;

import edu.gatech.cs2340.bytebankers.model.Journey;
import edu.gatech.cs2340.bytebankers.model.Leader;
import edu.gatech.cs2340.bytebankers.model.Wagon;
import edu.gatech.cs2340.bytebankers.model.profession.Banker;
import edu.gatech.cs2340.bytebankers.presenter.IStorePresenter;
import edu.gatech.cs2340.bytebankers.presenter.StorePresenter;
import edu.gatech.cs2340.bytebankers.view.IStoreView;
import edu.gatech.cs2340.bytebankers.view.StoreView;
import edu.gatech.cs2340.bytebankers.view.TestStoreView;


public class StoreTestUI {
    public static void main(String[] args){
	
	JFrame frame = new JFrame();
	
	//StoreView view = new StoreView(); 
	
	Journey journey = new Journey();
	Wagon wagon = new Wagon();
	Leader leader = new Leader();
	Banker banker = new Banker();
	
	leader.setProfession(banker);
	journey.setLeader(leader);
	journey.setWagon(wagon);
	IStorePresenter presenter = new StorePresenter(journey);
	IStoreView view = new StoreView(presenter);
	presenter.setView(view);
	//frame.setSize(800,500);
	frame.setPreferredSize(new Dimension(850, 550));
	frame.setTitle("UITest");
	frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	
	frame.getContentPane().add((StoreView) view);
	frame.pack();
	frame.setVisible(true);
    }
    
}